home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 1998 November / IRIX 6.5.2 Base Documentation November 1998.img / usr / share / catman / p_man / cat3 / Xm / XmTextReplace.z / XmTextReplace
Text File  |  1998-10-30  |  5KB  |  133 lines

  1.  
  2.  
  3.  
  4.      XXXXmmmmTTTTeeeexxxxttttRRRReeeeppppllllaaaacccceeee((((3333XXXX))))         UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV         XXXXmmmmTTTTeeeexxxxttttRRRReeeeppppllllaaaacccceeee((((3333XXXX))))
  5.  
  6.  
  7.  
  8.      NNNNAAAAMMMMEEEE
  9.           XXXXmmmmTTTTeeeexxxxttttRRRReeeeppppllllaaaacccceeee - A Text function that replaces part of a text
  10.           string
  11.  
  12.      SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  13.           #include <Xm/Text.h>
  14.           vvvvooooiiiidddd XXXXmmmmTTTTeeeexxxxttttRRRReeeeppppllllaaaacccceeee(
  15.           WWWWiiiiddddggggeeeetttt wwwwiiiiddddggggeeeetttt,
  16.           XXXXmmmmTTTTeeeexxxxttttPPPPoooossssiiiittttiiiioooonnnn ffffrrrroooommmm____ppppoooossss,
  17.           XXXXmmmmTTTTeeeexxxxttttPPPPoooossssiiiittttiiiioooonnnn ttttoooo____ppppoooossss,
  18.           cccchhhhaaaarrrr **** vvvvaaaalllluuuueeee);
  19.  
  20.      VVVVEEEERRRRSSSSIIIIOOOONNNN
  21.           This page documents Motif 2.1.
  22.  
  23.      DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  24.           XXXXmmmmTTTTeeeexxxxttttRRRReeeeppppllllaaaacccceeee replaces part of the text string in the Text
  25.           widget. The character positions begin at 0 (zero) and are
  26.           numbered sequentially from the beginning of the text.
  27.  
  28.           An example text replacement would be to replace the second
  29.           and third characters in the text string. To accomplish this,
  30.           the parameter _f_r_o_m__p_o_s must be 1 and _t_o__p_o_s must be 3. To
  31.           insert a string after the fourth character, both parameters,
  32.           _f_r_o_m__p_o_sand _t_o__p_o_s, must be 4.
  33.  
  34.           This routine calls the widget's XXXXmmmmNNNNvvvvaaaalllluuuueeeeCCCChhhhaaaannnnggggeeeeddddCCCCaaaallllllllbbbbaaaacccckkkk and
  35.           verification callbacks, either XXXXmmmmNNNNmmmmooooddddiiiiffffyyyyVVVVeeeerrrriiiiffffyyyyCCCCaaaallllllllbbbbaaaacccckkkk or
  36.           XXXXmmmmNNNNmmmmooooddddiiiiffffyyyyVVVVeeeerrrriiiiffffyyyyCCCCaaaallllllllbbbbaaaacccckkkkWWWWccccssss, or both. If both verification
  37.           callback lists are registered, the procedures of the
  38.           XXXXmmmmNNNNmmmmooooddddiiiiffffyyyyVVVVeeeerrrriiiiffffyyyyCCCCaaaallllllllbbbbaaaacccckkkk list are executed first and the
  39.           resulting data is passed to the XXXXmmmmNNNNmmmmooooddddiiiiffffyyyyVVVVeeeerrrriiiiffffyyyyCCCCaaaallllllllbbbbaaaacccckkkkWWWWccccssss
  40.           callbacks.  The XXXXmmmmNNNNmmmmoooottttiiiioooonnnnVVVVeeeerrrriiiiffffyyyyCCCCaaaallllllllbbbbaaaacccckkkk is generated if
  41.           _t_o__p_o_s is less than or equal to the cursor position and the
  42.           length of _v_a_l_u_e is not the same as the length of the text
  43.           being replaced, or if the cursor position is between
  44.           _f_r_o_m__p_o_s and _t_o__p_o_s, and the distance from the cursor
  45.           position to _f_r_o_m__p_o_s is greater than the length of _v_a_l_u_e.
  46.  
  47.           _w_i_d_g_e_t    Specifies the Text widget ID
  48.  
  49.           _f_r_o_m__p_o_s  Specifies the start position of the text to be
  50.                     replaced
  51.  
  52.           _t_o__p_o_s    Specifies the end position of the text to be
  53.                     replaced
  54.  
  55.           _v_a_l_u_e     Specifies the character string value to be added
  56.                     to the text widget
  57.  
  58.           For a complete definition of Text and its associated
  59.           resources, see XXXXmmmmTTTTeeeexxxxtttt(3).
  60.  
  61.  
  62.  
  63.      Page 1                                         (printed 10/24/98)
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.      XXXXmmmmTTTTeeeexxxxttttRRRReeeeppppllllaaaacccceeee((((3333XXXX))))         UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV         XXXXmmmmTTTTeeeexxxxttttRRRReeeeppppllllaaaacccceeee((((3333XXXX))))
  71.  
  72.  
  73.  
  74.      RRRREEEELLLLAAAATTTTEEEEDDDD
  75.           XXXXmmmmTTTTeeeexxxxtttt(3) and XXXXmmmmTTTTeeeexxxxttttRRRReeeeppppllllaaaacccceeeeWWWWccccssss(3).
  76.  
  77.  
  78.  
  79.  
  80.  
  81.  
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.      Page 2                                         (printed 10/24/98)
  130.  
  131.  
  132.  
  133.